package com.yang.service;

import java.util.List;

import com.yang.dao.UserDao;
import com.yang.pojo.User;

public class ObjectService {

	private UserDao userDao;
	
	
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public void save(){
		userDao.save(new User());
	}

	public List<User> findAll() {
		
		return (List<User>) userDao.findAll();
	}
}
